<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/1
  Time: 13:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>商品详情展示界面</title>
</head>
<body>
<h1>商品详情展示界面</h1>
<hr/>
<form method="post" action="manage/product/get_detail.do">
    <label for="productId">请输入要查看的</label><input id="productId" name="productId" type="text" value="${id}"/>
    <input type="submit"/>
</form>
<h2>商品名称: ${product.name}</h2>
<p>商品品类: ${product.categoryId}</p>
<h1>商品标题: ${product.subtitle}</h1>
<img src="http://img.happymmall.com/${product.mainImage}" width="300px"/><br/>
<div>
    <c:forEach var="subImage" items="${product.subImages}">
        <img src="http://img.happymmall.com/${subImage}" width="150px"/>
    </c:forEach>
</div>
商品价格:${product.price}<br/>
商品库存:${product.stock}<br/>
商品销售状态:${product.status}<br/>
商品创建/更新时间:<br/>${product.createTime}/${product.updateTime}
<h3>商品详情</h3>
${product.detail}
</body>
</html>
